Repository navigation
feat: ship the third-party notices and show them under Licences - #23
Merged
Merged
Conversation
setup/notices.py writes the full licence texts of every registry crate in the app's and the command line's Cargo.lock graph, Vite's module preload helper, the extension kit's Apache-2.0 text and the demos' credits, with a note for the Linux AppImage's LGPL libraries. --check reads only the lock files and the repository and runs in the CI test job.
The bundle carries THIRD-PARTY-NOTICES.txt as a resource, the notices command and the Licences panel in the window's footer read it, and formmcp-cli notices prints it. Tests cover the check passing on the committed file, failing by name on a missing crate, changed credits, a missing resource entry or a missing file, and the command line output.
Keep the upstream licence files for the 33 shipped crates whose published crate carries no licence file in setup/licence_texts, each with its SOURCE.txt and an INDEX.json naming the repository, ref and files. setup/notices.py now prints those texts with a note naming their source (32 upstream, selectors reconstructed from the SPDX MPL-2.0 text), and --check fails when a kept text is not carried or its crate no longer ships.
main gained pull request #22 after this branch was cut (a gone agent program reads as not found, no agent is connected from a disk image), and three files conflicted. In each, both sides had added lines at the same place. Both additions are kept, and nothing else differs from what git merged by itself. - core/src/lib.rs: both module lines, `pub mod mounts;` then `pub mod notices;`, in the file's alphabetical order. - core/HASHOUT_LOG.md, frontend/HASHOUT_LOG.md: both Unreleased sections, this branch's notices section first, then main's. main also made libc a direct dependency of formmcp-core on macOS. libc was already reachable from the app in Cargo.lock, so THIRD-PARTY-NOTICES.txt needs no new section and is unchanged. Run on the merged tree, on Linux: python3 -I setup/notices.py --check (covers everything that ships); cargo check and cargo test --locked -p formmcp-core -p formmcp-cli (75 passed, 0 failed); cargo check --locked -p formmcp; the scripts job's shell syntax, Python compile, family check and em dash and emoji scan; in frontend npm ci, npm audit, typecheck and build. Not run: any macOS or Windows build, and the app's window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: ship the third-party notices and show them under Licences
Summary
THIRD-PARTY-NOTICES.txt, the full licence texts of what it carries: the 516 registry crates reachable from the app and the command line inCargo.lock, Vite's module preload helper, the extension kit's Apache-2.0 text, the three demos' credits, and a note on the LGPL libraries in the Linux AppImage.setup/notices.pygenerates it.formmcp-cli noticesprints it, and the bundle carries the file as a resource.python3 -I setup/notices.py --checkruns in CI's test job and fails by name when a shipped crate, the kit copy, a demo's credits or the bundle entry is not covered.setup/licence_texts, each with its source (32 from upstream,selectorsreconstructed from the SPDX MPL-2.0 text).mainis merged in. Pull request fix: refuse writing client configs from a disk image and show missing agent programs #22 landed after this branch was cut and three files conflicted:core/src/lib.rs,core/HASHOUT_LOG.mdandfrontend/HASHOUT_LOG.md. In each, both sides had added lines at the same place; both additions are kept (pub mod mounts;thenpub mod notices;, and both Unreleased sections of each log). Nothing else differs from what git merged by itself.Commits
Version
No new version.
Cargo.toml,src-tauri/tauri.conf.jsonandfrontend/package.jsonstay at 0.14.1 and there is no release commit, so there is nothing to build after this merge.CHANGELOG.mdkeeps the Unreleased section that #22 added; this pull request adds no line to it.Checks
Run on the merged tree, on Linux:
python3 -I setup/notices.py --check: covers everything that ships.mainmade libc a direct dependency offormmcp-coreon macOS; libc was already reachable from the app, so the notices file needs no new section and is unchanged.cargo check --locked -p formmcp-core -p formmcp-cli: passed.cargo test --locked -p formmcp-core -p formmcp-cli: 75 passed, 0 failed.cargo check --locked -p formmcp(the desktop shell, which CI does not compile): passed.frontend:npm ci,npm audit(0 vulnerabilities),npm run typecheckandnpm run build: all passed.Not run: any macOS or Windows build; the app's window, so the Licences panel and the Not found card were not looked at together; and
setup/notices.pywithout--check, so the notices file was not regenerated.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash. The three commits by gbarnai are already on GitHub and are not changed.